/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.javatrainning.hieptq.btvn1;

/**
 *
 * @author Hiep
 */
public class Bai6 {
    static boolean thuannghich(int n){
	int m=n;
	int dao=0;
     while(n>0){
		dao=dao*10+n%10;
		n=n/10;
		}
	if(dao==m) return true;
	return false;
	}
public static void main(String[] args){
	for(int i=100000;i<=999999;i++)
		if(thuannghich(i))
			System.out.println(" "+i);
	}
}



